package cn.com.guage.dtm.mapping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.guage.dtm.common.annotation.Excel;
import cn.com.guage.dtm.common.core.domain.BaseEntity;

/**
 * 字段级映射信息对象 mapping_field_info
 * 
 * @author liujun
 * @date 2021-07-14
 */
public class MappingFieldInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 字段映射Id */
    private Long fieldId;

    /** 表映射Id */
    @Excel(name = "表映射Id")
    private Long tableId;

    /** 目标字段id */
    @Excel(name = "目标字段id")
    private Long targetFieldId;

    /** 目标字段code */
    @Excel(name = "目标字段code")
    private String targetFieldCode;

    /** 目标字段名称 */
    @Excel(name = "目标字段名称")
    private String targetFieldName;

    /** 源字段id */
    @Excel(name = "源字段id")
    private Long sourceFieldId;

    /** 源字段code */
    @Excel(name = "源字段code")
    private String sourceFieldCode;

    /** 源字段名称 */
    @Excel(name = "源字段名称")
    private String sourceFieldName;

    /** 字段值来源分类 */
    @Excel(name = "字段值来源分类")
    private String fieldValueType;

    /** 迁移方法分类 */
    @Excel(name = "迁移方法分类")
    private String transMethodType;

    /** 迁移规则id */
    @Excel(name = "迁移规则id")
    private Long transRuleId;

    /** 迁移规则code */
    @Excel(name = "迁移规则code")
    private String transRuleCode;

    /** 迁移规则说明 */
    @Excel(name = "迁移规则说明")
    private String transRuleDetail;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private String parseStatus;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMsg;

    public void setFieldId(Long fieldId) 
    {
        this.fieldId = fieldId;
    }

    public Long getFieldId() 
    {
        return fieldId;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setTargetFieldId(Long targetFieldId) 
    {
        this.targetFieldId = targetFieldId;
    }

    public Long getTargetFieldId() 
    {
        return targetFieldId;
    }
    public void setTargetFieldCode(String targetFieldCode) 
    {
        this.targetFieldCode = targetFieldCode;
    }

    public String getTargetFieldCode() 
    {
        return targetFieldCode;
    }
    public void setTargetFieldName(String targetFieldName) 
    {
        this.targetFieldName = targetFieldName;
    }

    public String getTargetFieldName() 
    {
        return targetFieldName;
    }
    public void setSourceFieldId(Long sourceFieldId) 
    {
        this.sourceFieldId = sourceFieldId;
    }

    public Long getSourceFieldId() 
    {
        return sourceFieldId;
    }
    public void setSourceFieldCode(String sourceFieldCode) 
    {
        this.sourceFieldCode = sourceFieldCode;
    }

    public String getSourceFieldCode() 
    {
        return sourceFieldCode;
    }
    public void setSourceFieldName(String sourceFieldName) 
    {
        this.sourceFieldName = sourceFieldName;
    }

    public String getSourceFieldName() 
    {
        return sourceFieldName;
    }
    public void setFieldValueType(String fieldValueType) 
    {
        this.fieldValueType = fieldValueType;
    }

    public String getFieldValueType() 
    {
        return fieldValueType;
    }
    public void setTransMethodType(String transMethodType) 
    {
        this.transMethodType = transMethodType;
    }

    public String getTransMethodType() 
    {
        return transMethodType;
    }
    public void setTransRuleId(Long transRuleId) 
    {
        this.transRuleId = transRuleId;
    }

    public Long getTransRuleId() 
    {
        return transRuleId;
    }
    public void setTransRuleCode(String transRuleCode) 
    {
        this.transRuleCode = transRuleCode;
    }

    public String getTransRuleCode() 
    {
        return transRuleCode;
    }
    public void setTransRuleDetail(String transRuleDetail) 
    {
        this.transRuleDetail = transRuleDetail;
    }

    public String getTransRuleDetail() 
    {
        return transRuleDetail;
    }
    public void setParseStatus(String parseStatus) 
    {
        this.parseStatus = parseStatus;
    }

    public String getParseStatus() 
    {
        return parseStatus;
    }
    public void setErrorMsg(String errorMsg) 
    {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() 
    {
        return errorMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fieldId", getFieldId())
            .append("tableId", getTableId())
            .append("targetFieldId", getTargetFieldId())
            .append("targetFieldCode", getTargetFieldCode())
            .append("targetFieldName", getTargetFieldName())
            .append("sourceFieldId", getSourceFieldId())
            .append("sourceFieldCode", getSourceFieldCode())
            .append("sourceFieldName", getSourceFieldName())
            .append("fieldValueType", getFieldValueType())
            .append("transMethodType", getTransMethodType())
            .append("transRuleId", getTransRuleId())
            .append("transRuleCode", getTransRuleCode())
            .append("transRuleDetail", getTransRuleDetail())
            .append("parseStatus", getParseStatus())
            .append("errorMsg", getErrorMsg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
